package com.testfileupload.uploadimg.design.decorate;

import com.testfileupload.uploadimg.design.decorate.example.HighScoreDecorator;
import com.testfileupload.uploadimg.design.decorate.example.SortDecorator;

/**
 * 类爆炸，维护困难
 */
public class Father {
    public static void main(String[] args) {
//        SchoolReport schoolReport = new SugerForthGradeSchoolReport();
//        schoolReport.report();
//        schoolReport.sign("老三");
        SchoolReport schoolReport;
        schoolReport = new FourthGradeSchoolReport();
        schoolReport = new SortDecorator(schoolReport);
        schoolReport = new HighScoreDecorator(schoolReport);

        schoolReport.report();
        schoolReport.sign("laozhang");


    }
}
